package com.yxy.system.service.impl;

import java.util.List;
import com.yxy.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yxy.system.mapper.ReportTipLogMapper;
import com.yxy.system.domain.ReportTipLog;
import com.yxy.system.service.IReportTipLogService;

/**
 * 报告提示日志Service业务层处理
 * 
 * @author 402844673@qq.com
 * @date 2025-09-04
 */
@Service
public class ReportTipLogServiceImpl implements IReportTipLogService 
{
    @Autowired
    private ReportTipLogMapper reportTipLogMapper;

    /**
     * 查询报告提示日志
     * 
     * @param id 报告提示日志主键
     * @return 报告提示日志
     */
    @Override
    public ReportTipLog selectReportTipLogById(Long id)
    {
        return reportTipLogMapper.selectReportTipLogById(id);
    }

    /**
     * 查询报告提示日志列表
     * 
     * @param reportTipLog 报告提示日志
     * @return 报告提示日志
     */
    @Override
    public List<ReportTipLog> selectReportTipLogList(ReportTipLog reportTipLog)
    {
        return reportTipLogMapper.selectReportTipLogList(reportTipLog);
    }

    /**
     * 新增报告提示日志
     * 
     * @param reportTipLog 报告提示日志
     * @return 结果
     */
    @Override
    public int insertReportTipLog(ReportTipLog reportTipLog)
    {
        reportTipLog.setCreateTime(DateUtils.getNowDate());
        return reportTipLogMapper.insertReportTipLog(reportTipLog);
    }

    /**
     * 修改报告提示日志
     * 
     * @param reportTipLog 报告提示日志
     * @return 结果
     */
    @Override
    public int updateReportTipLog(ReportTipLog reportTipLog)
    {
        reportTipLog.setUpdateTime(DateUtils.getNowDate());
        return reportTipLogMapper.updateReportTipLog(reportTipLog);
    }

    /**
     * 批量删除报告提示日志
     * 
     * @param ids 需要删除的报告提示日志主键
     * @return 结果
     */
    @Override
    public int deleteReportTipLogByIds(Long[] ids)
    {
        return reportTipLogMapper.deleteReportTipLogByIds(ids);
    }

    /**
     * 删除报告提示日志信息
     * 
     * @param id 报告提示日志主键
     * @return 结果
     */
    @Override
    public int deleteReportTipLogById(Long id)
    {
        return reportTipLogMapper.deleteReportTipLogById(id);
    }
}
